package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 智零工商户表
 * @author tianyonghong
 * @create 2023/2/23
 */
@Data
@Accessors(chain = true)
@TableName("zdd_odd_job_merchant")
public class OddJobMerchant extends Model<OddJobMerchant> {
    private static final long serialVersionUID = 1L;

    /**
     * 智零工商户id
     */
    @TableId(value = "merchant_id", type = IdType.AUTO)
    private Integer merchantId;

    @ApiModelProperty("智零工商户名称")
    private String merchantName;

    @Override
    protected Serializable pkVal() {
        return this.merchantId;
    }
}
